/*
 * CliImpuestoRenta.java
 *
 * Created on 17 de enero de 2008, 12:08
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package Cliente;
import Interfaces.ServImpRentaInterface;
/**
 *
 * @author EPS
 */
public class CliImpuestoRenta extends ClienteRMI {
    
    /** Creates a new instance of CliImpuestoRenta */
    
    
    public CliImpuestoRenta( String rmiHost, String port, String service ) {                
        super( rmiHost, port, service );        
    }
    
    public ServImpRentaInterface getObjeto(){
        ServImpRentaInterface ServRem = null;
        try{
            ServRem = ( ServImpRentaInterface ) java.rmi.Naming.lookup( "//" + this.getRmiHost() + 
                        ":" + this.getPort() + "/" + this.getService() );
        }catch( Exception er ){
            System.out.println( "Se produjo un error en la llamada" +er.getMessage());
            er.printStackTrace();            
        }
        return ServRem;
    }    
}
